<?php
      
        function hp_rec(){  
                $res = mysql_query("SELECT uin, hp, param_2 FROM geo.uin WHERE btl < 100 AND hp < param_2 * 6");
                while ($row = mysql_fetch_assoc($res)) {
                        $toc=$row['hp']+1;
                        mysql_query("UPDATE geo.uin set hp = $toc WHERE uin = ".$row['uin']);
                }
        }


mysql_connect('localhost','root2','root2');
hp_rec();
?>
